The Slider Component > FSlider.getSnapToTicks() |
FSlider.getSnapToTicks()
Availability
Flash Player 6.
Usage
mySlider_sld.getSnapToTicks ()
Parameters
Boolean - Returns a Boolean value indicating
whether or not the thumb button on the slider will
snap to the closest tick mark.
Returns
Returns a Boolean indicating whether or not the thumb button on the slider will snap to the closest tick mark.
Description
Returns whether the thumb (and the data value it represents) resolves to the closest tick mark where the user positioned the thumb. The default value for this is false.
Example
The slider_setSnapToTicks.fla example file contains an example of using this method.
The following code turns snapping on then retrieves this value and traces it.:
mySlider_sld.setSnapToTicks(true); trace( "Snapping: " + mySlider_sld.getSnapToTicks() );//traces true
See also